﻿using System;
using Team4Mock.DAO;

namespace Team4Mock.FormView
{
    public partial class Capcha : System.Web.UI.Page
    {
        UserDAO ad=new UserDAO();
        protected void Page_Load(object sender, EventArgs e)
        {
            Response.Clear();
            Response.ContentType = "image/jpeg";
            string text;
            ad.GenericImage(out text, 100, 30).Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
            Session["CaptchaImage"] = text;
        }
    }
}